package cn.linshu.shiro.jwt.controller;

import cn.linshu.shiro.jwt.dto.CommonResult;
import cn.linshu.shiro.jwt.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * -*- coding: utf-8 -*-
 *
 * @Author linnin
 * @Name springboot3-labs-master
 * @Time 2025/2/11 21:59
 * @Note
 * @For
 * @Out Copyright© 2025 linnin
 */

/* coding: utf-8 */
@RestController
public class TestController {
    @Autowired
    private TestService testService;

    @RequestMapping("/test")
    public CommonResult test() {
        return CommonResult.success("test");
    }

    @RequestMapping("/tests")
    public CommonResult test2() {
        return CommonResult.success(testService.list());
    }
}
